/*
 *  Class name: SoccerMatchHeaderDTO.java
 *  Version: 1.0
 *  Date: 28.3.2014
 */
package cz.muni.fi.pa165.soccergamesarchive.businesslayer.dtos;

import java.util.Date;
import java.util.Objects;

/**
 *
 * @author Michal Ďuriš
 */
public class SoccerMatchHeaderDTO {

    private Long id;

    private Date matchDate;

    public SoccerMatchHeaderDTO(Date soccerMatchDate) {
        this.matchDate = soccerMatchDate;
    }

    public SoccerMatchHeaderDTO(Long id, Date matchDate) {
        this.id = id;
        this.matchDate = matchDate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getMatchDate() {
        return matchDate;
    }

    public void setMatchDate(Date matchDate) {
        this.matchDate = matchDate;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 79 * hash + Objects.hashCode(this.matchDate);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {

        if (obj == null) {
            return false;
        }

        if (getClass() != obj.getClass()) {
            return false;
        }

        final SoccerMatchHeaderDTO other = (SoccerMatchHeaderDTO) obj;

        return Objects.equals(this.matchDate, other.matchDate);
    }

}
